/*
 * @Author: 周洋 1430536748@qq.com
 * @Date: 2024-08-22 00:05:03
 * @LastEditors: 周洋 1430536748@qq.com
 * @LastEditTime: 2024-08-22 10:16:33
 * @version: 1.2.5
 * @Description: 
 */
import { doGet, doPost } from '@/plugins/axios/index';
import { IRoleForm, IRoleSearch } from '@/types/system/index.d';
import { IResult } from '@/types/index.d';


//CURD 接口
export interface ICurdService {
    /** 分页查询 */
    getPage: (searchData: any) => IResult<any>;
    /** 插入 */
    insert: (dataForm: any) => IResult<any>;
}


class Api implements ICurdService {
    constructor() { }

    getPage = (searchData:IRoleSearch): IResult<any> => {
        return {flag:true,code:'200',message:'',data:''};
    };
    insert = (dataForm: any): IResult<any> => {

        return {flag:true,code:'200',message:'',data:''};
    }
}
export const API = new Api();